<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of cms
 * 
 * @author Subha Sundar Das (subhasundar.das@gmail.com)
 */
class Cms extends CI_Controller {

    //put your code here


    function cms() {
        parent :: __construct();
        //put your code here
    }

    function page($url,$id) {
        if($id){
            $sql = "select * from cms where id=$id";
            $result = $this->db->query($sql)->row();
            
            $data['cms'] = $result;
            
            $this->load->view('cms',$data);
        }
    }

}

?>
